@extends('base')
@section('title', 'Collections')
@section('csses')

@endsection
@section('content')
<div class="main_l2" style="padding: 0px 12px;">
	<div class="col-md-8 coll-con">
		<div class="col-md-12 ca-info">

			<div class="col-md-3 ca-cover"><img class="img-responsive" src="{{ asset('uploads/' . $collection->cover) }}"></div>
			<div class="col-md-9 ca-ab">
				<h3>{{ $collection->name }}</h3>
				<div class="c-abstract">{{ $collection->abstract }}</div>
			</div>
		</div>


		 <div class="col-md-12 sec">
			<input id="main-check" type="checkbox" >
		    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		    Selected:<img src="{{asset('images/sele_abs.gif')}}"><a class="view_abstract" href="#">View Abstracts</a>
		    <div id="ref-export" class="dc-con" data-e-url="{{ route('article.export_refs') }}">
		      <img src="{{asset('images/sele_down.jpg')}}"><span>Download Citations</span>
		      <dl>
		        <a href="#" data-type="endnote">EndNote</a>
		        <a href="#" data-type="reference_manager">Reference Manager</a>
		        <a href="#" data-type="procite">ProCite</a>
		        <a href="#" data-type="bibtex">BibTeX</a>
		        <a href="#" data-type="refworks">RefWorks</a>
		      </dl>
		    </div>
		    <img src="{{asset('images/sele_pic1.png')}}"><a class="togle_pic" href="#">Toggle Thumbnails</a>
		</div>
		<div class="col-md-12">
			@if (count($articles) == 0)
				<b>当前专辑中没有文章.</b>
			@else 
			<ul>
			    @foreach($articles as $article)
			    <li>
			        @include('sections.article', ['article' => $article])
			  	</li>
			  	@endforeach
			</ul>
			@endif 
		</div>
	</div>
	<div class="col-md-4">
		
	<div class="main_r1">
      <div class="col-md-6 col-xs-6 main_pic  ">
        <a class="image-popup-vertical-fit" href="{{ asset('uploads/' . $issue->cover)   }}">
          <img src="{{ asset('uploads/' . $issue->cover) }}" width="150">
        </a>
      </div>
      <div class="col-md-6 col-xs-6 main_url">
        <a href="{{ url()->current() }}"><strong><span class="font-col">Current Issue</span> </strong> </a><br>
        {{ $issue->year }}, Volume {{ $issue->volume }} Issue {{ $issue->issue }}<br>
        <br>
      </div>
	</div>
	

</div>
@endsection